package boardgamer.yavalath.client.pro;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

/**
 * @author garysoed
 */
public class ProImageHandler {
  
  public static Bitmap replayFilePicker;
  public static Bitmap replayFilePickerGlow;
  
  public static Bitmap colorPickerDisabled;
  public static Bitmap aiButtonDisabled;
  public static Bitmap humanButtonDisabled;
  public static Bitmap playerNameBackgroundDisabled;
  
  public static Bitmap replayBegin;
  public static Bitmap replayBeginGlow;
  public static Bitmap replayBackward;
  public static Bitmap replayBackwardGlow;
  public static Bitmap replayPlay;
  public static Bitmap replayPlayGlow;
  public static Bitmap replayPause;
  public static Bitmap replayPauseGlow;
  public static Bitmap replayForward;
  public static Bitmap replayForwardGlow;
  public static Bitmap replayEnd;
  public static Bitmap replayEndGlow;

  public static void initialize(Context context) {
    Resources resources = context.getResources();
    replayFilePicker = BitmapFactory.decodeResource(resources, R.drawable.replay_file_picker);
    replayFilePickerGlow
        = BitmapFactory.decodeResource(resources, R.drawable.replay_file_picker_glow);
    
    colorPickerDisabled = BitmapFactory.decodeResource(resources, 
        R.drawable.color_picker_disabled);
    aiButtonDisabled = BitmapFactory.decodeResource(resources, R.drawable.ai_button_disabled);
    humanButtonDisabled = BitmapFactory.decodeResource(resources,
        R.drawable.human_button_disabled);
    playerNameBackgroundDisabled = BitmapFactory.decodeResource(resources,
        R.drawable.player_name_background_disabled);
    
    replayBegin = BitmapFactory.decodeResource(resources, R.drawable.replay_begin);
    replayBeginGlow = BitmapFactory.decodeResource(resources, R.drawable.replay_begin_glow);
    replayBackward = BitmapFactory.decodeResource(resources, R.drawable.replay_backward);
    replayBackwardGlow = BitmapFactory.decodeResource(resources, R.drawable.replay_backward_glow);
    replayPause = BitmapFactory.decodeResource(resources,  R.drawable.replay_pause);
    replayPauseGlow = BitmapFactory.decodeResource(resources, R.drawable.replay_pause_glow);
    replayPlay = BitmapFactory.decodeResource(resources, R.drawable.replay_play);
    replayPlayGlow = BitmapFactory.decodeResource(resources, R.drawable.replay_play_glow);
    replayForward = BitmapFactory.decodeResource(resources, R.drawable.replay_forward);
    replayForwardGlow = BitmapFactory.decodeResource(resources, R.drawable.replay_forward_glow);
    replayEnd = BitmapFactory.decodeResource(resources, R.drawable.replay_end);
    replayEndGlow = BitmapFactory.decodeResource(resources, R.drawable.replay_end_glow);
  }
}
